Optimal. Leaf size=123 \[ -\frac {3 b \csc (e+f x)}{4 f \sqrt {b \sec (e+f x)}}-\frac {3 b \csc ^3(e+f x)}{10 f \sqrt {b \sec (e+f x)}}-\frac {b \csc ^5(e+f x)}{5 f \sqrt {b \sec (e+f x)}}+\frac {3 \sqrt {\cos (e+f x)} F\left (\left .\frac {1}{2} (e+f x)\right |2\right ) \sqrt {b \sec (e+f x)}}{4 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 123, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2705, 3856,
2720} \begin {gather*} -\frac {b \csc ^5(e+f x)}{5 f \sqrt {b \sec (e+f x)}}-\frac {3 b \csc ^3(e+f x)}{10 f \sqrt {b \sec (e+f x)}}-\frac {3 b \csc (e+f x)}{4 f \sqrt {b \sec (e+f x)}}+\frac {3 \sqrt {\cos (e+f x)} F\left (\left .\frac {1}{2} (e+f x)\right |2\right ) \sqrt {b \sec (e+f x)}}{4 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2705
Rule 2720
Rule 3856
Rubi steps
\begin {align*} \int \csc ^6(e+f x) \sqrt {b \sec (e+f x)} \, dx &=-\frac {b \csc ^5(e+f x)}{5 f \sqrt {b \sec (e+f x)}}+\frac {9}{10} \int \csc ^4(e+f x) \sqrt {b \sec (e+f x)} \, dx\\ &=-\frac {3 b \csc ^3(e+f x)}{10 f \sqrt {b \sec (e+f x)}}-\frac {b \csc ^5(e+f x)}{5 f \sqrt {b \sec (e+f x)}}+\frac {3}{4} \int \csc ^2(e+f x) \sqrt {b \sec (e+f x)} \, dx\\ &=-\frac {3 b \csc (e+f x)}{4 f \sqrt {b \sec (e+f x)}}-\frac {3 b \csc ^3(e+f x)}{10 f \sqrt {b \sec (e+f x)}}-\frac {b \csc ^5(e+f x)}{5 f \sqrt {b \sec (e+f x)}}+\frac {3}{8} \int \sqrt {b \sec (e+f x)} \, dx\\ &=-\frac {3 b \csc (e+f x)}{4 f \sqrt {b \sec (e+f x)}}-\frac {3 b \csc ^3(e+f x)}{10 f \sqrt {b \sec (e+f x)}}-\frac {b \csc ^5(e+f x)}{5 f \sqrt {b \sec (e+f x)}}+\frac {1}{8} \left (3 \sqrt {\cos (e+f x)} \sqrt {b \sec (e+f x)}\right ) \int \frac {1}{\sqrt {\cos (e+f x)}} \, dx\\ &=-\frac {3 b \csc (e+f x)}{4 f \sqrt {b \sec (e+f x)}}-\frac {3 b \csc ^3(e+f x)}{10 f \sqrt {b \sec (e+f x)}}-\frac {b \csc ^5(e+f x)}{5 f \sqrt {b \sec (e+f x)}}+\frac {3 \sqrt {\cos (e+f x)} F\left (\left .\frac {1}{2} (e+f x)\right |2\right ) \sqrt {b \sec (e+f x)}}{4 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.32, size = 73, normalized size = 0.59 \begin {gather*} \frac {\left (-\cot (e+f x) \left (15+6 \csc ^2(e+f x)+4 \csc ^4(e+f x)\right )+15 \sqrt {\cos (e+f x)} F\left (\left .\frac {1}{2} (e+f x)\right |2\right )\right ) \sqrt {b \sec (e+f x)}}{20 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.29, size = 485, normalized size = 3.94
method | result | size |
default | \(\frac {\left (-1+\cos \left (f x +e \right )\right )^{2} \left (15 i \EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, i\right ) \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \left (\cos ^{5}\left (f x +e \right )\right ) \sin \left (f x +e \right )+15 i \EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, i\right ) \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \left (\cos ^{4}\left (f x +e \right )\right ) \sin \left (f x +e \right )-30 i \EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, i\right ) \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \left (\cos ^{3}\left (f x +e \right )\right ) \sin \left (f x +e \right )-30 i \EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, i\right ) \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )+15 i \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, i\right ) \sin \left (f x +e \right ) \cos \left (f x +e \right )+15 i \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, i\right ) \sin \left (f x +e \right )-15 \left (\cos ^{5}\left (f x +e \right )\right )+36 \left (\cos ^{3}\left (f x +e \right )\right )-25 \cos \left (f x +e \right )\right ) \left (\cos \left (f x +e \right )+1\right )^{2} \sqrt {\frac {b}{\cos \left (f x +e \right )}}}{20 f \sin \left (f x +e \right )^{9}}\) | \(485\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.12, size = 204, normalized size = 1.66 \begin {gather*} -\frac {15 \, \sqrt {2} {\left (i \, \cos \left (f x + e\right )^{4} - 2 i \, \cos \left (f x + e\right )^{2} + i\right )} \sqrt {b} \sin \left (f x + e\right ) {\rm weierstrassPInverse}\left (-4, 0, \cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right ) + 15 \, \sqrt {2} {\left (-i \, \cos \left (f x + e\right )^{4} + 2 i \, \cos \left (f x + e\right )^{2} - i\right )} \sqrt {b} \sin \left (f x + e\right ) {\rm weierstrassPInverse}\left (-4, 0, \cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right ) + 2 \, {\left (15 \, \cos \left (f x + e\right )^{5} - 36 \, \cos \left (f x + e\right )^{3} + 25 \, \cos \left (f x + e\right )\right )} \sqrt {\frac {b}{\cos \left (f x + e\right )}}}{40 \, {\left (f \cos \left (f x + e\right )^{4} - 2 \, f \cos \left (f x + e\right )^{2} + f\right )} \sin \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {\frac {b}{\cos \left (e+f\,x\right )}}}{{\sin \left (e+f\,x\right )}^6} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________